@extends('layout.admin')

@section('title','订单详情')

@section('content')

</style>
<div class="col-md-5">
<table class="table table-hover text-left" style="border-bottom:solid 1px #ddd">
    <tbody>
        
        <tr>
            <td width="30%">订单号</td>
            <td>{{$orders->order_num}}</td>
        </tr>
        <tr>
            <td>会员</td>
            <td>{{$orders->username}}</td>
        </tr>
        <tr>
            <td>收货人</td>
            <td>{{$orders->consignee}}</td>
        </tr>
        <tr>
            <td>联系方式</td>
            <td>{{$orders->phone}}</td>
        </tr>
        <tr>
            <td>收获地址</td>
            <td>{{getAreaNameById($orders->prov).getAreaNameById($orders->city).getAreaNameById($orders->county).$orders->detail}}</td>
        </tr>
        
    </tbody>
    <!-- <tr class="clearfix"></tr> -->
</table>
    

<!-- <hr> -->
</div>
<div class="col-md-6 col-md-offset-1">
	<table class="table table-hover text-left" style="border-bottom:solid 1px #ddd">
    	<tr>
            <td>物流状态</td>
            <td>
			@if(!empty($wlInfo))
            	{{$wlName[$wlInfo['sl'][0]]}} : {{$wlInfo['sl'][1]}}<br>
				@foreach($wlInfo['tw'] as $k=>$v)
					{{$k}}<br>{{$v}}<br>
				@endforeach
			@endIf
            </td>
        </tr>
    </table>
</div>
<div class="clearfix"></div>
<hr>
<span>商品信息<span>
<span style="font-weight:bold;font-size:30px;color:#ee3333;float:right">总计: ￥{{$tp}}元</span>

<table class="table table-hover text-center" style="border-bottom:solid 1px #ddd">
	<tr>
		<th>序号</th>
		<th>商品标题</th>
		<th>商品图片</th>
		<th>商品价格</th>
		<th>件数</th>
		<th>商品颜色</th>
		<th>商品尺寸</th>
		<th>小计</th>
	</tr>
	
	@foreach($goods as $k=>$v)
	<tr>
		<td>{{$k+1}}</td>
		<td><a href="http://123.com/home/detail/{{$v->goods_id}}.html?goods_id={{$v->goods_id}}">{{$v->title}}</a></td>
		<td><img height="50px" src="{{$v->pics}}" alt=""></td>
		<td>{{$v->price}}</td>
		<td>{{$v->num}}</td>
		<td>{{$v->goods_color}}</td>
		<td>{{$v->goods_size}}</td>
		<td style="font-size:20px;color:#ee3333">{{$v->gprice}}</td>
	</tr>
	@endforeach
	<!-- <tr  style="font-weight:bold;font-size:30px;color:#ee3333">
		<td colspan="2" >总计:</td>
		<td colspan="6"  class="text-left">￥元</td>
	</tr> -->
</table>
@endsection